package com.xuecheng.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.learning.model.dto.XcChooseCourseDTO;
import com.xuecheng.learning.model.po.XcChooseCourse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 勾新杰
 * @since 2025-02-26
 */
public interface IXcChooseCourseService extends IService<XcChooseCourse> {

    /**
     * 添加选课
     * @param courseId 课程id
     * @return 选课记录和状态
     */
    XcChooseCourseDTO addChooseCourse(Long courseId);

    /**
     * 根据id查询选课记录
     * @param id 选课记录id
     * @return 选课
     */
    XcChooseCourse getByIdForUpdate(Long id);
}
